﻿using CodeGenerator.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace CodeGenerator
{
    public partial class frmServer : Form
    {
        public frmServer()
        {
            this.StartPosition = FormStartPosition.CenterScreen;
            InitializeComponent();
        }
        public static DatabaseType? DatabaseType = null;
        private void btncontinue_Click(object sender, EventArgs e)
        {
            base.DialogResult = DialogResult.OK;
          
            if (this.rabmssql.Checked)
            {
                DatabaseType = CodeGenerator.Common.DatabaseType.SqlServer;
            }
            else if (this.radmysql.Checked)
            {
                DatabaseType = CodeGenerator.Common.DatabaseType.MySql;
            }
            
            base.Close();
        }

        private void btncancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
